{extend name="layout/iframe" /}
{block name="pagecss"}
<style>
    .layui-form-select .layui-input{
        padding-right: 0;
        cursor: pointer;
    }
    input::-webkit-input-placeholder {
        text-align:right;
    }
</style>
{/block}
{block name="content"}
<div class="layui-card-body layui-layout-admin" style="padding: 15px;">
    <form class="layui-form" action="" lay-filter="component-form-group">
        <div class="layui-form-item product">
            <label class="layui-form-label"><span class="required">*</span>拼团商品</label>
            <div class="layui-input-block">
                <button class="layui-input" lay-event="purchase-o" id="product_name" type="button"  data-title="选择">请选择</button>
                <input type="hidden" name="product_id" lay-verify="product_id" id="product_id" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span class="required">*</span>团购价格</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" name="group_price" lay-verify="group_price" placeholder="请输入" autocomplete="off">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span class="required">*</span>成团人数</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" name="group_succ_count" lay-verify="group_succ_count" placeholder="请输入" autocomplete="off">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span class="required">*</span>成团时限</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" name="group_succ_time" lay-verify="group_succ_time" placeholder="小时" autocomplete="off">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">每人限购</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" name="confine_count" lay-verify="confine_count" placeholder="请输入" autocomplete="off">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><span class="required">*</span>开始日期</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" id="start_time" name="start_time" lay-verify="start_time">
            </div>　　
            <label class="layui-form-label" style="width: 10%"><span class="required">*</span>结束日期</label>
            <div class="layui-input-inline" >
                <input type="text" class="layui-input" id="end_time" name="end_time" lay-verify="end_time">
            </div>
        </div>
        <div class="layui-form-item layui-row layui-col-xs12">
                <div class="layui-footer">
                    <button type="button" class="layui-btn layui-btn-primary close-btn">取消</button>
                    <button class="layui-btn" type="button" lay-submit="" lay-filter="laySave">保存 <i class="layui-icon">&#xe609;</i></button>
                </div>
        </div>
    </form>
</div>


<input type="hidden" class="token_url" value="{:url('admin/Image/token')}">
<input type="hidden" class="record_url" value="{:url('admin/Image/record')}">
<input type="hidden" class="delimage_url" value="{:url('admin/Image/delete')}">
<input type="hidden" class="save_url" value="{:url('admin/'.strtolower($model).'/addpost')}">
<input type="hidden" class="get_product_url" value="{:url('admin/'.strtolower($model).'/get_product')}">
{/block}

{block name="pagescript"}


<script src="__STATIC__/admin/pages/js/group.js" type="text/javascript"></script>
{/block}